const routes = [

    {
        name: "login",//路由的名称
        path: "/login",//访问URL
        component: () => import('@/invoicing/login')//组件路径
    },

    {
        name: "index",//路由的名称
        path: "/index",//访问URL
        component: () => import('@/invoicing/index'),//组件路径
        children:[
            {
                name: "vendorIndex",//路由的名称
                path: "/index/vendor",//访问URL
                component: () => import('@/invoicing/vendor')//组件路径
            },
            {
                name: "userIndex",//路由的名称
                path: "/index/user",//访问URL
                component: () => import('@/invoicing/user')//组件路径
            },
            {
                name: "clientIndex",//路由的名称
                path: "/index/client",//访问URL
                component: () => import('@/invoicing/client')//组件路径
            },
            {
                name: "logIndex",//路由的名称
                path: "/index/log",//访问URL
                component: () => import('@/invoicing/log')//组件路径
            },
            {
                name: "updatePwdIndex",//路由的名称
                path: "/index/updatePwd",//访问URL
                component: () => import('@/invoicing/updatePwd')//组件路径
            },
            {
                name: "roleIndex",//路由的名称
                path: "/index/role",//访问URL
                component: () => import('@/invoicing/role')//组件路径
            },
            {
                name: "productIndex",//路由的名称
                path: "/index/product",//访问URL
                component: () => import('@/invoicing/product')//组件路径
            },
            {
                name: "saleCarIndex",//路由的名称
                path: "/index/saleCar",//访问URL
                component: () => import('@/invoicing/saleCar')//组件路径
            },
            {
                name: "saleOrderInfoIndex",//路由的名称
                path: "/index/saleOrderInfo",//访问URL
                component: () => import('@/invoicing/saleOrderInfo')//组件路径
            },
            {
                name: "pieIndex",//路由的名称
                path: "/index/pie",//访问URL
                component: () => import('@/invoicing/pie')//组件路径
            },
            {
                name: "columnIndex",//路由的名称
                path: "/index/column",//访问URL
                component: () => import('@/invoicing/column')//组件路径
            },
            {
                name: "buyCarIndex",//路由的名称
                path: "/index/buyCar",//访问URL
                component: () => import('@/invoicing/buyCar')//组件路径
            },
            {
                name: "buyOrderInfoIndex",//路由的名称
                path: "/index/buyOrderInfo",//访问URL
                component: () => import('@/invoicing/buyOrderInfo')//组件路径
            },
        ]
    },

];

export default routes;